home *** CD-ROM | disk | FTP | other *** search
- startrecord=true
- label=
- nodetype=7
- filename=avm:rexx/stdhead.avm
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=parse arg servername mailbox .
- line2=if symbol('mailbox') ~= 'VAR' | mailbox = '' then mailbox = 'manual'
- line3=options failat 50
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1='turnoffvoicemode'
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=6
- mode=0
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=9
- baud=4
- bits=1
- parity=0
- stopbits=0
- handshaking=1
- erroractiontype=3
- erroractionaction=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=isTrapFax
- nodetype=8
- line1=faxprogram = upper(getclip('AVMFaxProgram'))
- line2=if faxprogram = 'TRAPFAX' then do
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=call showDebugger('Starting TrapFax reception.')
- line2=call time('r')
- line3=
- line4=/*----------------------------------------*/
- line5=address rexx 'setuptfax.avm'
- line6=/*----------------------------------------*/
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=11
- line1=ATA
- timeout=10
- swallowecho=1
- timedoutactiontype=0
- timedoutactionaction=stdtimedout
- abortactiontype=0
- abortactionaction=stdabort
- erroractiontype=0
- erroractionaction=stderror
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=address command "trapfax:tfaxdoor getty"
- line2=
- line3=call showDebugger('TrapFax reception ' || time('e'))
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=isGPFax
- nodetype=8
- line1=end; else if faxprogram = 'GPFAX' then do
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=call showDebugger('Starting GPFax reception.')
- line2=call time('r')
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=address rexx_gpfax 'listen'
- line2=address rexx_gpfax 'recfax'
- line3=faxresult = rc
- line4=address rexx_gpfax 'unlisten'
- line5=
- line6=call showDebugger('GPFax result is' faxresult)
- line7=call showDebugger('GPFax done ' || time('e'))
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=isEFax
- nodetype=8
- line1=end; else if faxprogram = 'EFAX' then do
- line2=
- line3=/* create a unique filename */
- line4=efaxFileName = makeUniqueFile()
- line5=call time('r')
- line6=address command 'avm:gnu/efax -p' servername '-r' voiceFile(mailbox, efaxFileName)
- line7=efaxLength = time('e')
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=end
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=doneRecFax
- nodetype=16
- timeout=2
- abortactiontype=0
- abortactionaction=stdabort
- erroractiontype=0
- erroractionaction=stderror
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=11
- line1=AT+FCLASS=0
- timeout=10
- swallowecho=1
- timedoutactiontype=0
- timedoutactionaction=stdtimedout
- abortactiontype=0
- abortactionaction=stdabort
- erroractiontype=0
- erroractionaction=stderror
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=10
- timeout=2
- valueactiontype=3
- valueactionaction=
- timedoutactiontype=3
- timedoutactionaction=
- abortactiontype=0
- abortactionaction=stdabort
- erroractiontype=0
- erroractionaction=stderror
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=10
- timeout=2
- valueactiontype=3
- valueactionaction=
- timedoutactiontype=3
- timedoutactionaction=
- abortactiontype=0
- abortactionaction=stdabort
- erroractiontype=0
- erroractionaction=stderror
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=createLog
- nodetype=8
- line1=handle = makeUniqueFile()
- line2=call initLogEntry()
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=log.comment = 'Fax attempted.'
- line2=log.type = 'Try_FAX'
- line3=
- line4=if faxprogram = 'GPFAX' then do
- line5= if faxresult <= 5 then signal gotfaxgpfax
- line6=end; else if faxprogram = 'TRAPFAX' then do
- line7= call open('cfaxlstfl', 'trapfax:trapfax.log', 'r')
- line8= call open('cfaxnrfl', 'trapfax:incoming/trapfax.sequence', 'r')
- line9= cfaxnr = readln('cfaxnrfl')
- line10= cnewfaxnr = right(cfaxnr, 4, '0')
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1= do forever
- line2= cfax = readln('cfaxlstfl')
- line3= cfaxlsnr = right(left(cfax, 6), 4)
- line4= if cfaxlsnr = cfaxnr | eof('cfaxlstfl') then break
- line5= end
- line6= call close('cfaxlstfl'); call close('cfaxnrfl')
- line7= if left(cfax, 1) ~= 'E' then signal gotfaxtrapfax
- line8=end; else if faxprogram = 'EFAX' then do
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=if exists(voiceFile(mailbox, efaxFileName) || '.001') then signal gotfaxefax
- line2=end
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=0
- nextactionaction=finished
- endrecord=true
- startrecord=true
- label=gotfaxgpfax
- nodetype=8
- line1=address rexx_gpfax 'reportlog' 1
- line2=
- line3=faxfilename = result
- line4=log.filename = result
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=
- line2=address rexx_gpfax 'reportlog' 6
- line3=log.length = result
- line4=address rexx_gpfax 'reportlog' 2
- line5=log.comment = result 'page(s) received.'
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=address rexx_gpfax 'reportlog' 4
- line2=log.returnnumber = result
- line3=log.type = 'fax'
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=0
- nextactionaction=finished
- endrecord=true
- startrecord=true
- label=gotfaxtrapfax
- nodetype=8
- line1=faxfilename = 'trapfax:incoming/In-' || cfaxnr || '.FAX'
- line2=log.filename = faxfilename
- line3=myvar = right(left(cfax, 54), 5)
- line4=myvar = (left(myvar, 2)*60) + (right(myvar, 2))
- line5=log.length = myvar
- line6=myvar = right(left(cfax, 47), 2); myvar = strip(myvar, 'L')
- line7=log.comment = myvar 'page(s)'
- line8=myvar = right(left(cfax, 45), 22)
- line9=myvar = strip(myvar, 'T')
- line10=log.returnnumber = myvar; log.type = 'fax'
- nextactiontype=0
- nextactionaction=finished
- endrecord=true
- startrecord=true
- label=gotfaxefax
- nodetype=8
- line1=log.filename = efaxFileName
- line2=faxfilename = efaxFileName
- line3=log.type = 'fax'
- line4=
- line5=log.length = efaxLength
- line6=base = voiceFile(mailbox, efaxFileName) || '.'
- line7=do i = 1 to 999
- line8= if ~exists(base || right(i, 3, '0')) then break
- line9=end
- line10=log.comment = i - 1 'page(s).'
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=log.returnNumber = getclip(upper(servername || '.faxid'))
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=0
- nextactionaction=finished
- endrecord=true
- startrecord=true
- label=finished
- nodetype=8
- line1=call saveLogEntry(mailbox, handle)
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=call loadMailbox(mailbox)
- line2=if upper(log.type) = 'FAX' & mailbox.autofaxforwardb = 1 & mailbox.autofaxforwardscript ~= "" then do
- line3= handle = makeUniqueFile()
- line4= call initLogEntry(); log.origmailbox = mailbox
- line5= log.filename = voiceFile(mailbox, faxfilename); log.type = 'fax'
- line6= log.returnsendfunc = mailbox.autofaxforwardscript; log.returninterval = 5
- line7= log.returnretry = 3; log.returnnumber = mailbox.autofaxforward
- line8= call saveLogEntry('Outgoing', handle)
- line9=end
- line10=
- nextactiontype=3
- nextactionaction=
- endrecord=true
- startrecord=true
- label=
- nodetype=8
- line1=
- line2=
- line3=
- line4=
- line5=
- line6=
- line7=
- line8=
- line9=
- line10=
- nextactiontype=2
- nextactionaction=exit
- endrecord=true
- startrecord=true
- label=
- nodetype=7
- filename=avm:rexx/simplestdtail.avm
- nextactiontype=3
- nextactionaction=
- endrecord=true
-